<?php
class VolatileDataStore implements DataStore {
	
	private $objectArray;
	
	public function __construct() {
		
		$this->objectArray = array();
	}
	
	public function getObject($objectId) {
		
		return $this->objectArray[$objectId];
	}
	
	public function addObject($objectId, $object) {
		
		$this->objectArray[$objectId] = $object;
	}
	
	public function removeObject($objectId) {
		
		unset($this->objectArray[$objectId]);
	}
	
	public function wipe() {
		
		$this->objectArray = array();
	}
}
?>